package org.cxmzxy.class2333;

public class 波那契 {
        public static int fbnq(int a){ //获取斐波那契
            int total=2;
            int qian=1;
            int hou=1;
            for(int i=3;i<=20;i++){
                int zui=qian+hou;
                total+=zui;
                qian=hou;
                hou=zui;
            }
            return total;
        }
        public static void main(String[] args){
            System.out.println(fbnq(20));
        }
    }